package com.chainyoung.component_tmperson.ui.mvp.contract;

import com.chainyoung.common.mvp.IModel;
import com.chainyoung.common.mvp.IView;
import com.chainyoung.component_tmperson.entity.InviteFriend;
import com.google.gson.JsonObject;

import org.json.JSONException;
import org.web3j.crypto.CipherException;

import java.io.IOException;
import java.util.TreeMap;

import io.reactivex.Flowable;

public interface HdWalletSendTransactionContract {


    interface View extends IView {

        void onGetGasPriceSuccess(String data);

        void onSendTransactionSuccess(String hash);

        void onGetNonce(String nonce) throws JSONException, CipherException, IOException;

        void onGetEthPriceSuccessed(String data);

        void onGetUsdCnyRateSuccessed(String data);


    }

    interface Model extends IModel {

        Flowable<String> getGasPrice();

        Flowable<String> sendTransaction(String hex);

        Flowable<String> getNonce(String addr);

        Flowable<String> getEthPrice();

        Flowable<String> getUsdCnyRate(String from,String to);


    }

}
